<?php /* Smarty version Smarty-3.1.21, created on 2015-06-02 20:23:16
         compiled from "D:\mywamp\www\2015php\wenda\Index\View\common\right.html" */ ?>
<?php /*%%SmartyHeaderCode:308885569c7513ff3c0-86392648%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '5dc541ea7d57747db32030bfd728496ea658c1ef' => 
    array (
      0 => 'D:\\mywamp\\www\\2015php\\wenda\\Index\\View\\common\\right.html',
      1 => 1433247794,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '308885569c7513ff3c0-86392648',
  'function' => 
  array (
  ),
  'version' => 'Smarty-3.1.21',
  'unifunc' => 'content_5569c7517338c3_93572767',
  'variables' => 
  array (
    'userinfo' => 0,
    'todaymore' => 0,
    'history' => 0,
    'accept' => 0,
  ),
  'has_nocache_code' => false,
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5569c7517338c3_93572767')) {function content_5569c7517338c3_93572767($_smarty_tpl) {?><div id='right'>
			<div class='userinfo' style="display: none;">
			<dl>
				<dt>
					<a href="" class="facelink"><img src="" width='48' height='48' alt="占位符" id="userface"/></a>
				</dt>
				<dd class='username'>
					<a href="" class="userlink">
						<b></b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><b class='mypointbox'></b></a></dd>
				<dd>经验值：<span class="exp">200</span></dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="" id="ask"></a></td>
					<td><a href=""></a></td>
					<td class='last'><a href="">回答数</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="<?php echo @constant('__APP__');?>
?c=home">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
			<?php if (isset($_SESSION['username'])) {?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['userinfo']->value['uid'];?>
"><img src="<?php echo @constant('__PUBLIC__');
echo $_smarty_tpl->tpl_vars['userinfo']->value['face'];?>
" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['userinfo']->value['uid'];?>
" class="userlink">
						<b><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['username'];?>
</b>
					</a>
					<a href="">
						<i class='level lv<?php echo $_smarty_tpl->tpl_vars['userinfo']->value['lv'];?>
' title='Level <?php echo $_smarty_tpl->tpl_vars['userinfo']->value['lv'];?>
'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;"><b class='point'><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['point'];?>
</b></a></dd>
				<dd>经验值：<span class="exp"><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['exp'];?>
</{}></span></dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class="last">提问数</td>
				</tr>
				<tr>
					<td><a href="javascript:;" id="ask"><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['answer'];?>
</a></td>
					<td><a href="javascript:;"><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['cnl'];?>
</a></td>
					<td class="last"><a href="javascript:;" ><?php echo $_smarty_tpl->tpl_vars['userinfo']->value['ask'];?>
</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_SESSION['uid'];?>
">我提问的</a></li>
				<li><a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_SESSION['uid'];?>
">我回答的</a></li>
			</ul>
		</div>
		<?php } else { ?>
		 <div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div> 
		<?php }?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<?php if (isset($_smarty_tpl->tpl_vars['todaymore']->value)) {?>
		<span class='star-name'>本日回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['todaymore']->value['uid'];?>
" class='star-face'>
						<img src="<?php echo @constant('__PUBLIC__');
echo $_smarty_tpl->tpl_vars['todaymore']->value['face'];?>
" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li>
							<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['todaymore']->value['uid'];?>
"><?php echo $_smarty_tpl->tpl_vars['todaymore']->value['username'];?>
</a>
							<i class='level lv<?php echo $_smarty_tpl->tpl_vars['todaymore']->value['lv'];?>
' title='Level <?php echo $_smarty_tpl->tpl_vars['todaymore']->value['lv'];?>
'></i>
						</li>
						
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span><?php echo $_smarty_tpl->tpl_vars['todaymore']->value['todaycount'];?>
</span></li>
					<li>采纳率：<span><?php echo $_smarty_tpl->tpl_vars['todaymore']->value['cnl'];?>
</span></li>
				</ul>
				
			</div>
			<?php }?>
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['history']->value['uid'];?>
" class='star-face'>
					<img src="<?php echo @constant('__PUBLIC__');
echo $_smarty_tpl->tpl_vars['history']->value['face'];?>
" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li>
						<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['history']->value['uid'];?>
"><?php echo $_smarty_tpl->tpl_vars['history']->value['username'];?>
</a>
						<i class='level lv<?php echo $_smarty_tpl->tpl_vars['history']->value['lv'];?>
' title='Level <?php echo $_smarty_tpl->tpl_vars['history']->value['lv'];?>
'></i>
					</li>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span><?php echo $_smarty_tpl->tpl_vars['history']->value['answer'];?>
</span></li>
				<li>采纳率：<span><?php echo $_smarty_tpl->tpl_vars['history']->value['cnl'];?>
</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
				<?php if (isset($_smarty_tpl->tpl_vars['smarty']->value['section']['ap'])) unset($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['loop'] = is_array($_loop=$_smarty_tpl->tpl_vars['accept']->value) ? count($_loop) : max(0, (int) $_loop); unset($_loop);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['name'] = 'ap';
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['show'] = true;
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['max'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['loop'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['step'] = 1;
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['start'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['step'] > 0 ? 0 : $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['loop']-1;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['show']) {
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['total'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['loop'];
    if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['total'] == 0)
        $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['show'] = false;
} else
    $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['total'] = 0;
if ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['show']):

            for ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['start'], $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration'] = 1;
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration'] <= $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['total'];
                 $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index'] += $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['step'], $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration']++):
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['rownum'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index_prev'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index'] - $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index_next'] = $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['index'] + $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['step'];
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['first']      = ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration'] == 1);
$_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['last']       = ($_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['iteration'] == $_smarty_tpl->tpl_vars['smarty']->value['section']['ap']['total']);
?>
				<li>
					<a href="<?php echo @constant('__APP__');?>
?c=home&uid=<?php echo $_smarty_tpl->tpl_vars['accept']->value[$_smarty_tpl->getVariable('smarty')->value['section']['ap']['index']]['uid'];?>
"><i class='rank r<?php echo $_smarty_tpl->getVariable('smarty')->value['section']['ap']['index']+1;?>
'></i><?php echo $_smarty_tpl->tpl_vars['accept']->value[$_smarty_tpl->getVariable('smarty')->value['section']['ap']['index']]['username'];?>
</a>
					<span><?php echo $_smarty_tpl->tpl_vars['accept']->value[$_smarty_tpl->getVariable('smarty')->value['section']['ap']['index']]['accept'];?>
</span>
				</li>
				<?php endfor; endif; ?>
			</ul>
		</div>
	</div>
</div><?php }} ?>
